package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author zhengmf
 * @Date 2018/12/25  17:30
 */
@ApiModel("用户组基本信息")
public class UserGroupEvt implements Serializable {
    private static final long serialVersionUID = 1039575932775924960L;
    @ApiModelProperty("用户组ID")
    private Long groupId;
    @ApiModelProperty("用户组名")
    @NotBlank
    private String groupName;
    @ApiModelProperty("父级ID")
    private Long parentId;
    @ApiModelProperty(value = "用户组类别",notes = "1:自定义用户组,2:组织机构")
    private Integer groupType;
    @ApiModelProperty("用户组状态: 1、启用 0、禁用")
    private Integer status = 1;
    @ApiModelProperty("用户组描述信息")
    private String description;
    @ApiModelProperty("用户组全称")
    private String groupFullName;
    @ApiModelProperty("区域ID")
    @NotNull
    private Long regionId;

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getGroupType() {
        return groupType;
    }

    public void setGroupType(Integer groupType) {
        this.groupType = groupType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getGroupFullName() {
        return groupFullName;
    }

    public void setGroupFullName(String groupFullName) {
        this.groupFullName = groupFullName;
    }

    public Long getRegionId() {
        return regionId;
    }

    public void setRegionId(Long regionId) {
        this.regionId = regionId;
    }

    @Override
    public String toString() {
        return "UserGroupEvt{" +
            "groupId=" + groupId +
            ", groupName='" + groupName + '\'' +
            ", parentId=" + parentId +
            ", groupType=" + groupType +
            ", status=" + status +
            ", description='" + description + '\'' +
            ", groupFullName='" + groupFullName + '\'' +
            ", regionId=" + regionId +
            '}';
    }
}
